package com.sundhage.gui {
	
	public class JSPageListSettings {
		public var title:String = "";
		public var itemHeight:int = 20;
		public var fixedHeight:Boolean = false;
		public var itemPad:int = 10;
		public var height:int = 150;
		public var width:int = 150;
		public var generalPad:int = 2;
		public var hasFFRW:Boolean = true;
		public var FFRWAmount:int = 10;
		public var hasScroller:Boolean = false;
		public var itemsClickable:Boolean = true;

		public var scrollerAssets:JSScrollerAssets;
		public var scrollerWidth:int = 20;
		public var scrollerCurve:int = 5;
		public var font:Class;
		public var itemMouseOverColor:uint = 0x0;
		public var itemMouseOverAlpha:Number = 0.2;
		
		//public var fixedHeight:Boolean = false;
		
		public var itemsPerPage:int = 10;
		public var totalItems:int = 155;
				
		private function parseObj(o:Object):void {
			for (var prop:* in o) {
				try {
					this[prop] = o[prop];
				} catch (e:Error) {
					trace("JSListSettings::parseObj -> property "+prop+" does not exist.");
				}
			}
		}


		public function JSPageListSettings(obj:Object) {
			if (obj) {
				parseObj(obj);
			}
		}

	}
}